From: Jordi Mallach Date: Sat, 1 Aug 2026 11:36:36 +0000 (+0200) Subject: Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds. X-Git-Tag: archive/raspbian/0.289+dfsg1-1+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=acd109f5c547fed98d5f346bee99820374984014;p=mame.git Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds. Forwarded: no Last-Update: 2025-05-14 Gbp-Pq: Name ftbfs_alpha_ia64.patch --- diff --git a/makefile b/makefile index fe983b808..5aa3fd801 100644 --- a/makefile +++ b/makefile @@ -199,6 +199,14 @@ else ifneq ($(filter arm%,$(UNAME_M)),) PLATFORM := arm else ifneq ($(filter arm%,$(UNAME_P)),) PLATFORM := arm +else ifneq ($(filter ia64,$(UNAME_M)),) +PLATFORM := ia64 +else ifneq ($(filter ia64,$(UNAME_P)),) +PLATFORM := ia64 +else ifneq ($(filter loongarch64,$(UNAME_M)),) +PLATFORM := loong64 +else ifneq ($(filter loongarch64,$(UNAME_P)),) +PLATFORM := loong64 else ifneq ($(filter powerpc,$(UNAME_P)),) PLATFORM := powerpc else ifneq ($(filter riscv64%,$(UNAME_M)),) @@ -421,9 +429,39 @@ else BIGENDIAN := 1 endif endif + +ifeq ($(findstring alpha,$(UNAME)),alpha) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring ia64,$(UNAME)),ia64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring loongarch64,$(UNAME)),loongarch64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring riscv64,$(UNAME)),riscv64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + ifneq (,$(findstring s390x,$(UNAME))) BIGENDIAN := 1 endif + # FreeBSD ifneq (,$(findstring powerpc,$(UNAME))) ifneq (,$(findstring powerpc64le,$(UNAME)))